﻿using MIMSCore.Abstract;
using MIMSCore.Logging;
using MIMSDomain.Abstract;
using MIMSDomain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MIMSWeb.Controllers
{
    [Authorize]
    public class MedicalFacilitiesController : Controller
    {
        IRepository<MedicalFacility> _facilityRepository;
        ILogger<SynkronLogger> _logger;

        public MedicalFacilitiesController(IRepository<MedicalFacility> facilityRepository, ILogger<SynkronLogger> logger)
        {
            _facilityRepository = facilityRepository;
            _logger = logger;
        }
        
        public ActionResult Index()
        {
            var model = _facilityRepository.All;
            return View(model);
        }

        public ViewResult AddMedicalFacility(){

            return View();
        }

    }
}
